package com.ganeshkrishnan.globald.dao.hibernate;

import java.util.List;

import com.ganeshkrishnan.globald.abstracts.GenericDaoHibernate;
import com.ganeshkrishnan.globald.dao.ResourceRequirementDao;
import com.ganeshkrishnan.globald.model.ResourceRequirement;

public class ResourceRequirementDaoHibernate extends GenericDaoHibernate<ResourceRequirement, Long> implements ResourceRequirementDao {
	public ResourceRequirementDaoHibernate() {
		super(ResourceRequirement.class);
	}

	public List<ResourceRequirement> findResourcesByType(int RequirementType) {
		return getHibernateTemplate().find("from ResourceRequirement where ReqType=?", RequirementType);
	}
}
